package com.jiayang.business.Infraredthresholdpage;

import com.jiayang.business.equipmentinfopage.domain.dto.ThresholdDTO;
import com.jiayang.common.anno.OperateLog;
import com.jiayang.common.domain.ResponseDTO;
import com.jiayang.constant.SwaggerTagConst;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ Author     ：OuyangChenglong
 * @ Date       ：Created in 9:56 2021/9/8
 * @ Description：红外阈值设置页
 * @ Modified By：
 * @Version: 1.0$
 */
@RestController
@Api(tags = {SwaggerTagConst.Admin.CLIENT_INFRARED_THRESHOLD})
@OperateLog
public class InfraredThresholdController {

    @Autowired
    private InfraredThresholdService infraredThresholdService;

    // 红外阈值设置页面
    @PostMapping("/equipmentInfo/infrared/threshold/btnAddOnClick")
    @ApiOperation(value = "根据前端参数获取点位温度和状态", notes = "点位点击事件 @author OuyangChenglong")
    public ResponseDTO addThreshold(@RequestBody ThresholdDTO thresholdDTO) {
        return infraredThresholdService.addThreshold(thresholdDTO);
    }
}
